'''那个简单，就是你先实例化一个screenmanager，
然后把你写好的那些layout控件add到一个screen对象里
，然后再把screen对象加到screenmanager里
，在你控件里留好切换的按钮就好了'''
from kivy.app import App
from kivy.uix.screenmanager import ScreenManager,Screen
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.button import Button
class MyApp(App):
    def build(self):
        blayout = BoxLayout(orientation="vertical")
        blayout.add_widget(Button(text='home'))
        sc = ScreenManager()
        scc = Screen()
        layout = BoxLayout(orientation="vertical")
        layout.add_widget(Button(text='66'))
        scc.add_widget(layout)
        sc.add_widget(scc)
        blayout.add_widget(sc)
        return blayout
if __name__ == '__main__':
    MyApp().run()